#ifndef FSXWSFSXCONFIGUREDIALOG_H
#define FSXWSFSXCONFIGUREDIALOG_H

#include <QDialog>
#include <QAbstractButton>
#include "fsxwssettings.h"
#include "../FsxWebService/fsxwebservicehelper.h"

namespace Ui { class FsxWsConfigureDialog; }

namespace FsxWsGUI {

//! Configuration (settings dialog).
/*! \author KWB */
class FsxWsConfigureDialog : public QDialog
{
    Q_OBJECT
    
public:
    //! Standard constructor
    /*! \param parent widget */
    explicit FsxWsConfigureDialog(QWidget *parent = 0);
    //! Destructor
    ~FsxWsConfigureDialog();
    //! Set (init) the settings
    /*! \param settings */
    void setSettings(FsxWsSettings* settings);
    //! Set current tab
    /*! \param tab */
    void setTab(int tab);
    
private:
    Ui::FsxWsConfigureDialog *ui;
    //! Corresponding setiings
    FsxWsSettings* _settings;
    //! Update the settings
    void updateSettings();

private slots:
    //! Ok or cancel clicked
    void onOkCancelClicked(QAbstractButton*);
    //! Check the FMC data directory
    void onFmcDataDirectoryEditFinished();

};
} // namespace

#endif // FSXWSFSXCONFIGUREDIALOG_H
